package com.example.zjsr.dao;


import com.example.zjsr.domain.Comment;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CommentDao {
    int insert(Comment comment);

    int deleteById(Integer id);

    /**
     * 根据问题id删除回答
     * @param questionId
     * @return
     */
    boolean deleteCommentByQuestionId(Integer questionId);

    /**
     * 审核通过，则展示
     * @param id
     * @return
     */
    boolean checkComment(Integer id);
}
